2006-01-18 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkmain-quartz.c:
(_gdk_windowing_init):
Make the process a foreground application.
(#322481, Wolfgang Thaller)
+2006-01-18 Anders Carlsson <andersca@imendio.com>
+
+ * gdk/quartz/gdkmain-quartz.c:
+ (_gdk_windowing_init):
+ Make the process a foreground application.
+ (#322481, Wolfgang Thaller)
+
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:
+2006-01-18 Anders Carlsson <andersca@imendio.com>
+
+ * gdk/quartz/gdkmain-quartz.c:
+ (_gdk_windowing_init):
+ Make the process a foreground application.
+ (#322481, Wolfgang Thaller)
+
2006-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrbtree.c:
#include <config.h>
#include "gdk.h"
+#include <ApplicationServices/ApplicationServices.h>
GOptionEntry _gdk_windowing_args[] = {
{ NULL }
void
_gdk_windowing_init (void)
{
+ ProcessSerialNumber psn;
+
+ /* Make the current process a foreground application, i.e. an app
+ * with a user interface, in case we're not running from a .app bundle
+ */
+ GetCurrentProcess (&psn);
+ TransformProcessType (&psn, kProcessTransformToForegroundApplication);
}
void